projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3351768
)
i2c: stm32f7: Fix SDADEL minimum formula
author
Nicolas Le Bayon
<
[email protected]
>
Thu, 18 Apr 2019 15:32:42 +0000
(17:32 +0200)
committer
Patrice Chotard
<
[email protected]
>
Thu, 23 May 2019 09:36:47 +0000
(11:36 +0200)
It conforms with Reference Manual I2C timing section.
Signed-off-by: Nicolas Le Bayon <
[email protected]
>
Reviewed-by: Patrick DELAUNAY <
[email protected]
>
Signed-off-by: Patrick Delaunay <
[email protected]
>
drivers/i2c/stm32f7_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/stm32f7_i2c.c
b/drivers/i2c/stm32f7_i2c.c
index 3872364d6bf59454cc26b5f19fdb0629c2c13c8d..e7e0268ebeb8ea94e594aa94b00e54f29a4cf7dd 100644
(file)
--- a/
drivers/i2c/stm32f7_i2c.c
+++ b/
drivers/i2c/stm32f7_i2c.c
@@
-500,7
+500,7
@@
static int stm32_i2c_compute_solutions(struct stm32_i2c_setup *setup,
af_delay_max = setup->analog_filter ?
STM32_I2C_ANALOG_FILTER_DELAY_MAX : 0;
- sdadel_min =
setup->fall_time - i2c_specs[setup->speed].hddat_min
-
+ sdadel_min =
i2c_specs[setup->speed].hddat_min + setup->fall_time
-
af_delay_min - (setup->dnf + 3) * i2cclk;
sdadel_max = i2c_specs[setup->speed].vddat_max - setup->rise_time -